package com.service;

import com.model.Book;
import com.model.BrowRecored;
import com.model.User;

import java.util.HashMap;
import java.util.List;

public interface BookService {
    //虎虎
    HashMap<String, Object> selectPage(Book book, String limit, String page);

    HashMap<String, Object> selectPage2(String bookName, String varies, String limit, String page);






    //胡锦月

    //插入待管理员确定的借书记录
    int insertSelective(int userid,int bookId);
    //管理员确实该条借书记录
    int updateByBookState( int browRecoredId, String browDate);

    HashMap<String,Object> queryForBrowList(String page,String limit);

    int updateStockNumberByBookId(int bookId);

    HashMap<String,Object> queryBeforeBrowBookList(int userid,String page,String limit);

    List<BrowRecored> queryNowAndBeforeBrowList();




    //汪林
    User queryUser();

    List<BrowRecored> queryNowBrowListByUserId(Integer userId);

    List<BrowRecored> queryHandleListByUserId(Integer userId);

    Book selectByPrimaryKey(Integer bookId);

    int updateByPrimaryKeySelective(Book book_db);

    int queryBookNumber(int bookid);

    int insert(Book book);

    int insertUpBook(int upBookId, int variesId);
}
